/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session;

import entitys.Users;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author Administrator
 */
@Stateless
public class UsersFacade extends AbstractFacade<Users> implements UsersFacadeRemote {

    @PersistenceContext(unitName = "MVideo-ejbPU")
    private EntityManager em;

    protected EntityManager getEntityManager() {
        return em;
    }

    public UsersFacade() {
        super(Users.class);
    }

  
  
    public Users create1(Users users) {
        em.persist(users);
        return users;
    }
}
